<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改领导班子</title>
    <meta name="context-path" th:content="@{/}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/css/bootstrap.min.css}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/css/bootstrap-responsive.min.css}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/css/colorpicker.css}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/css/datepicker.css}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/css/uniform.css}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/css/select2.css}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/css/matrix-style.css}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/css/matrix-media.css}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/css/matrix-full.css}"/>
    <link rel="stylesheet" th:href="@{/resources/matrix/font-awesome/css/font-awesome.css}"/>
    <link rel="stylesheet" th:href="@{/resources/valid/css/bootstrapValidator.css}"/>
    <link rel="stylesheet" th:href="@{/resources/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/resources/css/website.css}"/>
</head>
<body class="childbody">
<div class="container-fluid editform_fluid">
    <!--Chart-box-->
    <div class="row-fluid">
        <div class="widget-box">
            <!--<div class="widget-title"><span class="icon"> <i class="icon-align-justify"></i> </span>
                <h5>水乡廉情</h5>
            </div>-->
            <div class="widget-content">
                <form id="detailform" th:object="${entity}" method="post" class="form-horizontal">
                    <input type="hidden" name="id" th:field="*{id}"  />
                    <input type="hidden" name="createTime" th:field="*{createTime}"  />
                    <input type="hidden" name="isRelease" th:field="*{isRelease}"  />
                    <input type="hidden" name="isDel" th:field="*{isDel}"  />
                    <input type="hidden" name="stauts" th:field="*{stauts}"  />
                    <div class="control-group">
                        <label class="control-label">领导姓名 :</label>
                        <div class="controls  form-group">
                            <input type="text" name="title" th:field="*{title}" class="span11" placeholder="请输入标题">
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">职级：</label>
                        <div class="controls form-group">
                            <select class="span11 form-control" name="rank" th:field="*{rank}">
                                <option value="-1" >---请选择---</option>
                                <option th:each="rl : ${infoType}" th:value="${rl.value}"
                                        th:text="${rl.name}" ></option>
                            </select>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">照片：</label>
                        <div class="controls form-group">
                            <table style="width: 80%">
                                <tr>
                                    <td width="14%">
                                        <div style="position:relative">
                                            <img id="imgAlt1" class="cover-radius"
                                                 width="100%" style="cursor: pointer;height:220px;"/>
                                            <input id="image1" name="titleImage" type="hidden" th:field="*{image}"/>
                                            <input id="fileInput_image1" name="file" type="file"
                                                   style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; opacity: 0; cursor: pointer;"/>
                                            <small class="help-block cover-tips" style="color: #dd4b39;display: none;">
                                                请上传照片
                                            </small>
                                        </div>
                                    </td>
                                    <td width="50%">
                                    </td>
                                </tr>

                            </table>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">描述：</label>
                        <div class="controls form-group">
                            <textarea class="span11" name="description" th:field="*{description}"></textarea>
                        </div>
                    </div>
                    <div class="form-actions">
                        <button id="btnSubmit" type="button" class="btn btn-success">确定</button>
                        <button id="btnClose" type="button" class="btn btn-primary">关闭</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script th:src="@{/resources/js/jquery.min.js}"></script>
<script th:src="@{/resources/js/jquery-migrate-1.2.1.js}"></script>
<script th:src="@{/resources/matrix/js/jquery.ui.custom.js}"></script>
<script th:src="@{/resources/matrix/js/bootstrap.min.js}"></script>
<script th:src="@{/resources/matrix/js/bootstrap-colorpicker.js}"></script>
<script th:src="@{/resources/matrix/js/bootstrap-datepicker.js}"></script>
<script th:src="@{/resources/matrix/js/masked.js}"></script>
<script th:src="@{/resources/matrix/js/jquery.uniform.js}"></script>
<script th:src="@{/resources/matrix/js/select2.min.js}"></script>
<script th:src="@{/resources/matrix/js/matrix.js}"></script>
<script th:src="@{/resources/matrix/js/jquery.peity.min.js}"></script>
<script th:src="@{/resources/layui/layui.all.js}" charset="utf-8"></script>
<script th:src="@{/resources/valid/js/bootstrapValidator.js}"></script>
<script th:src="@{/resources/valid/js/language/zh_CN.js}"></script>
<script th:src="@{/resources/js/website.js}"></script>
<script th:src="@{/resources/js/system.js}"></script>
<script th:src="@{/resources/js/validation_fields.js}"></script>
<script th:src="@{/resources/js/monitor/monitor_tree.js}"></script>
<script th:src="@{/resources/js/monitor/monitor_tree_common.js}"></script>
<script th:src="@{/resources/js/monitor/monitor_tree_operator.js}"></script>
<script th:src="@{/resources/uploader/AjaxFileUpload/ajaxfileupload.js}"></script>
<script th:src="@{/resources/js/upload.js}"></script>
<script th:src="@{/resources/ueditor/ueditor.config.js}"></script>
<script th:src="@{/resources/ueditor/ueditor.all.min.js}"></script>
<script th:src="@{/resources/ueditor/lang/zh-cn/zh-cn.js}"></script>
<!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->


<script th:inline="javascript">
    var contextRoot = $("meta[name='context-path']").attr("content");
</script>

<script th:inline="javascript">
    /*<![CDATA[*/
    layui.use(['form', 'layer', 'table'], function () {
        var formEdit = new FormEdit(layui.form, layui.layer, parent.edit, {
            url: contextRoot + "jwOurLeader/doUpdateOurLeader",
            getData: function () {
                return $("#detailform").serializeArray();
            }
        }, "detailform", ValidFields.our.add);
        $("#btnSubmit").bind("click", function (event) {
            formEdit.submit();
        });
        $("#btnClose").bind("click", function (event) {
            formEdit.close();
        });
        var path = [[${entity.image}]];
        if(path==null){
            new ImageFileUpload(null, "fileInput_image1", "imgAlt1", "image1");
        }else{
            new ImageFileUpload(path, "fileInput_image1", "imgAlt1", "image1");
        }
    });


    /*]]>*/
</script>

</body>
</html>